import java.util.Scanner;
public class Exam2_3 {
	public static void main(String args[ ]) {
		System.out.println("qingshururuogangeshu,meishuruyigeshuhuichequeren");
		System.out.println("zuihoushurushuzi0jieshushurucaozuo");
		Scanner reader = new Scanner(System.in);
		double sum = 0 ;
		double x = reader.nextDouble();
		while(x!=0){
			sum = sum + x;
			x =reader.nextDouble();
		}
		System.out.println("sum = "+sum);
	}
}

